Optimal. Leaf size=106 \[ \frac {3 a x}{8}-\frac {b \cosh (c+d x)}{d}+\frac {b \cosh ^3(c+d x)}{d}-\frac {3 b \cosh ^5(c+d x)}{5 d}+\frac {b \cosh ^7(c+d x)}{7 d}-\frac {3 a \cosh (c+d x) \sinh (c+d x)}{8 d}+\frac {a \cosh (c+d x) \sinh ^3(c+d x)}{4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 106, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {3299, 2715, 8,
2713} \begin {gather*} \frac {a \sinh ^3(c+d x) \cosh (c+d x)}{4 d}-\frac {3 a \sinh (c+d x) \cosh (c+d x)}{8 d}+\frac {3 a x}{8}+\frac {b \cosh ^7(c+d x)}{7 d}-\frac {3 b \cosh ^5(c+d x)}{5 d}+\frac {b \cosh ^3(c+d x)}{d}-\frac {b \cosh (c+d x)}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2713
Rule 2715
Rule 3299
Rubi steps
\begin {align*} \int \sinh ^4(c+d x) \left (a+b \sinh ^3(c+d x)\right ) \, dx &=\int \left (a \sinh ^4(c+d x)+b \sinh ^7(c+d x)\right ) \, dx\\ &=a \int \sinh ^4(c+d x) \, dx+b \int \sinh ^7(c+d x) \, dx\\ &=\frac {a \cosh (c+d x) \sinh ^3(c+d x)}{4 d}-\frac {1}{4} (3 a) \int \sinh ^2(c+d x) \, dx-\frac {b \text {Subst}\left (\int \left (1-3 x^2+3 x^4-x^6\right ) \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {b \cosh (c+d x)}{d}+\frac {b \cosh ^3(c+d x)}{d}-\frac {3 b \cosh ^5(c+d x)}{5 d}+\frac {b \cosh ^7(c+d x)}{7 d}-\frac {3 a \cosh (c+d x) \sinh (c+d x)}{8 d}+\frac {a \cosh (c+d x) \sinh ^3(c+d x)}{4 d}+\frac {1}{8} (3 a) \int 1 \, dx\\ &=\frac {3 a x}{8}-\frac {b \cosh (c+d x)}{d}+\frac {b \cosh ^3(c+d x)}{d}-\frac {3 b \cosh ^5(c+d x)}{5 d}+\frac {b \cosh ^7(c+d x)}{7 d}-\frac {3 a \cosh (c+d x) \sinh (c+d x)}{8 d}+\frac {a \cosh (c+d x) \sinh ^3(c+d x)}{4 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 81, normalized size = 0.76 \begin {gather*} \frac {840 a c+840 a d x-1225 b \cosh (c+d x)+245 b \cosh (3 (c+d x))-49 b \cosh (5 (c+d x))+5 b \cosh (7 (c+d x))-560 a \sinh (2 (c+d x))+70 a \sinh (4 (c+d x))}{2240 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.33, size = 93, normalized size = 0.88
method | result | size |
default | \(\frac {3 a x}{8}-\frac {35 b \cosh \left (d x +c \right )}{64 d}+\frac {7 b \cosh \left (3 d x +3 c \right )}{64 d}-\frac {7 b \cosh \left (5 d x +5 c \right )}{320 d}+\frac {b \cosh \left (7 d x +7 c \right )}{448 d}-\frac {a \sinh \left (2 d x +2 c \right )}{4 d}+\frac {a \sinh \left (4 d x +4 c \right )}{32 d}\) | \(93\) |
risch | \(\frac {3 a x}{8}+\frac {b \,{\mathrm e}^{7 d x +7 c}}{896 d}-\frac {7 b \,{\mathrm e}^{5 d x +5 c}}{640 d}+\frac {a \,{\mathrm e}^{4 d x +4 c}}{64 d}+\frac {7 b \,{\mathrm e}^{3 d x +3 c}}{128 d}-\frac {a \,{\mathrm e}^{2 d x +2 c}}{8 d}-\frac {35 b \,{\mathrm e}^{d x +c}}{128 d}-\frac {35 b \,{\mathrm e}^{-d x -c}}{128 d}+\frac {a \,{\mathrm e}^{-2 d x -2 c}}{8 d}+\frac {7 b \,{\mathrm e}^{-3 d x -3 c}}{128 d}-\frac {a \,{\mathrm e}^{-4 d x -4 c}}{64 d}-\frac {7 b \,{\mathrm e}^{-5 d x -5 c}}{640 d}+\frac {b \,{\mathrm e}^{-7 d x -7 c}}{896 d}\) | \(183\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 164, normalized size = 1.55 \begin {gather*} \frac {1}{64} \, a {\left (24 \, x + \frac {e^{\left (4 \, d x + 4 \, c\right )}}{d} - \frac {8 \, e^{\left (2 \, d x + 2 \, c\right )}}{d} + \frac {8 \, e^{\left (-2 \, d x - 2 \, c\right )}}{d} - \frac {e^{\left (-4 \, d x - 4 \, c\right )}}{d}\right )} - \frac {1}{4480} \, b {\left (\frac {{\left (49 \, e^{\left (-2 \, d x - 2 \, c\right )} - 245 \, e^{\left (-4 \, d x - 4 \, c\right )} + 1225 \, e^{\left (-6 \, d x - 6 \, c\right )} - 5\right )} e^{\left (7 \, d x + 7 \, c\right )}}{d} + \frac {1225 \, e^{\left (-d x - c\right )} - 245 \, e^{\left (-3 \, d x - 3 \, c\right )} + 49 \, e^{\left (-5 \, d x - 5 \, c\right )} - 5 \, e^{\left (-7 \, d x - 7 \, c\right )}}{d}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.43, size = 188, normalized size = 1.77 \begin {gather*} \frac {5 \, b \cosh \left (d x + c\right )^{7} + 35 \, b \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{6} - 49 \, b \cosh \left (d x + c\right )^{5} + 280 \, a \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{3} + 35 \, {\left (5 \, b \cosh \left (d x + c\right )^{3} - 7 \, b \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{4} + 245 \, b \cosh \left (d x + c\right )^{3} + 840 \, a d x + 35 \, {\left (3 \, b \cosh \left (d x + c\right )^{5} - 14 \, b \cosh \left (d x + c\right )^{3} + 21 \, b \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{2} - 1225 \, b \cosh \left (d x + c\right ) + 280 \, {\left (a \cosh \left (d x + c\right )^{3} - 4 \, a \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )}{2240 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.65, size = 192, normalized size = 1.81 \begin {gather*} \begin {cases} \frac {3 a x \sinh ^{4}{\left (c + d x \right )}}{8} - \frac {3 a x \sinh ^{2}{\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{4} + \frac {3 a x \cosh ^{4}{\left (c + d x \right )}}{8} + \frac {5 a \sinh ^{3}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{8 d} - \frac {3 a \sinh {\left (c + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{8 d} + \frac {b \sinh ^{6}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{d} - \frac {2 b \sinh ^{4}{\left (c + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{d} + \frac {8 b \sinh ^{2}{\left (c + d x \right )} \cosh ^{5}{\left (c + d x \right )}}{5 d} - \frac {16 b \cosh ^{7}{\left (c + d x \right )}}{35 d} & \text {for}\: d \neq 0 \\x \left (a + b \sinh ^{3}{\left (c \right )}\right ) \sinh ^{4}{\left (c \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 182, normalized size = 1.72 \begin {gather*} \frac {3}{8} \, a x + \frac {b e^{\left (7 \, d x + 7 \, c\right )}}{896 \, d} - \frac {7 \, b e^{\left (5 \, d x + 5 \, c\right )}}{640 \, d} + \frac {a e^{\left (4 \, d x + 4 \, c\right )}}{64 \, d} + \frac {7 \, b e^{\left (3 \, d x + 3 \, c\right )}}{128 \, d} - \frac {a e^{\left (2 \, d x + 2 \, c\right )}}{8 \, d} - \frac {35 \, b e^{\left (d x + c\right )}}{128 \, d} - \frac {35 \, b e^{\left (-d x - c\right )}}{128 \, d} + \frac {a e^{\left (-2 \, d x - 2 \, c\right )}}{8 \, d} + \frac {7 \, b e^{\left (-3 \, d x - 3 \, c\right )}}{128 \, d} - \frac {a e^{\left (-4 \, d x - 4 \, c\right )}}{64 \, d} - \frac {7 \, b e^{\left (-5 \, d x - 5 \, c\right )}}{640 \, d} + \frac {b e^{\left (-7 \, d x - 7 \, c\right )}}{896 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.26, size = 85, normalized size = 0.80 \begin {gather*} \frac {280\,b\,{\mathrm {cosh}\left (c+d\,x\right )}^3-280\,b\,\mathrm {cosh}\left (c+d\,x\right )-168\,b\,{\mathrm {cosh}\left (c+d\,x\right )}^5+40\,b\,{\mathrm {cosh}\left (c+d\,x\right )}^7-175\,a\,\mathrm {cosh}\left (c+d\,x\right )\,\mathrm {sinh}\left (c+d\,x\right )+105\,a\,d\,x+70\,a\,{\mathrm {cosh}\left (c+d\,x\right )}^3\,\mathrm {sinh}\left (c+d\,x\right )}{280\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________